'use strict';

const Controller = require('egg').Controller;

class MessageController extends Controller {
  async messageList() {
    const { ctx, logger } = this
    const { uid } = ctx.request.body
    
    logger.info("/message/messageList 入参======>>" + JSON.stringify(ctx.request.body))

    ctx.body = await ctx.service.message.selectMessages(
      uid
    )

    logger.info("/message/messageList 出参======>>" + JSON.stringify(ctx.body))
  }
}

module.exports = MessageController;
